import {  getReportData } from "@/api/data";
const state = {
  reportData: {}
}
const mutations = {
  SET_REPORT_DATA(state, reportData) {
    state.reportData = reportData
  }
}
const actions = {
  async getReportData({commit}) {
    const result = await getReportData()
    console.log('----result', result)
    const reportData = result.data
    commit('SET_REPORT_DATA', reportData)
  }
}
export default {
  namespaced: true, //开启命名空间
  state,
  mutations,
  actions,
}
